package com.delong.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.delong.model.app.Category;

public interface CategoryMapper {

	List<Category> selectALLCategory();

	List<Category> selectCategoryByTitle(@Param("title") String title, @Param("pageno") int pageno,
			@Param("limit") int limit);

	Category selectCategoryById(@Param("id") int id);

	int selectCount(@Param("title") String title);

	int addElement(Category element);

	int changeStatus(@Param("id") int id, @Param("status") int status);

	int changeCategory(Category element);
}
